"""Provide GUI window display for MulticastCounter in Portal
"""

from synapse.platforms import *
from synapse.nvparams import *
import wx
import urllib
#id =str(2)    
global i,add
add=0.00
i=0
def logEvent(data):
   global i,add
   #urllib.urlopen("http://api.swatbots.com/sensor/e?id="+id+'&data='+data)
   add=(add+data)
   i=i+1
   if i==5:
       print(add/5)
       #print(data)
       i=0
       add=0
    


